import 'package:flutter/material.dart';
import 'package:flutter_enjoy_plus/router/index.dart';
import 'package:flutter_enjoy_plus/stores/counte.dart';
import 'package:provider/provider.dart';

void main() {
  runApp(
    ChangeNotifierProvider(
      create: (context) => CounterModel(),
      child: MaterialApp(
        routes: RouterManager.routes,
        onGenerateRoute: (settings) => RouterManager.generateRoute(settings),
        initialRoute: '/', // 初始化的加载路由的路径
      ),
    ),
  );
}
